package stdio.costa.imoca.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import stdio.costa.imoca.model.Address;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso({ Address.class })
public class AddressListDTO implements Serializable {

	private static final long serialVersionUID = -6521327155451292295L;

	private List<Address> addresses;

	public List<Address> getAddresses() {
		if(addresses == null) {
			addresses = new ArrayList<Address>();
		}
		return addresses;
	}

	public void setAddresses(List<Address> addresses) {
		this.addresses = addresses;
	}
}
